
#第五题  猴子吃桃问题
total = 1

m = int(input("你说小猴子吃了几天呢？："))
n = int(input("你说什么？小猴子最后还剩几个呢？"))


def  kaixue (m,n):
    global total
    while  m > 0:
        n = (n + 1) * 2
        m-=1
    else:
        total = n

kaixue(m,n)

print("猴子第一天摘的桃子的个数为", total )